home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
You can browse this item here: any.tex
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text, with CR line terminators
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[CR]
| default (weak)
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [ttxt] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 61 6e 79 20 2d 2d 2d |\section|{any ---|
|00000010| 20 54 65 73 74 20 66 6f | 72 20 6e 6f 6e 2d 7a 65 | Test fo|r non-ze|
|00000020| 72 6f 20 6d 61 74 72 69 | 78 7d 0d 5c 6c 61 62 65 |ro matri|x}.\labe|
|00000030| 6c 7b 66 6e 3a 61 6e 79 | 7d 0d 5c 69 6e 64 65 78 |l{fn:any|}.\index|
|00000040| 7b 61 6e 79 28 29 7d 0d | 5c 69 6e 64 65 78 7b 74 |{any()}.|\index{t|
|00000050| 65 73 74 20 66 6f 72 20 | 6e 6f 6e 2d 7a 65 72 6f |est for |non-zero|
|00000060| 20 6d 61 74 72 69 78 7d | 0d 5c 69 6e 64 65 78 7b | matrix}|.\index{|
|00000070| 6d 61 74 72 69 78 21 74 | 65 73 74 7d 0d 5c 62 65 |matrix!t|est}.\be|
|00000080| 67 69 6e 7b 72 61 69 6c | 7d 0d 41 6e 79 20 3a 20 |gin{rail|}.Any : |
|00000090| 27 61 6e 79 27 20 27 28 | 27 20 28 20 53 63 61 6c |'any' '(|' ( Scal|
|000000a0| 61 72 20 7c 20 4d 61 74 | 72 69 78 20 29 20 27 29 |ar | Mat|rix ) ')|
|000000b0| 27 20 3b 0d 5c 65 6e 64 | 7b 72 61 69 6c 7d 0d 0d |' ;.\end|{rail}..|
|000000c0| 5c 76 65 72 62 2b 61 6e | 79 2b 20 74 65 73 74 73 |\verb+an|y+ tests|
|000000d0| 20 66 6f 72 20 6e 6f 6e | 2d 7a 65 72 6f 20 61 72 | for non|-zero ar|
|000000e0| 67 75 6d 65 6e 74 73 2e | 20 20 49 66 20 74 68 65 |guments.| If the|
|000000f0| 20 61 72 67 75 6d 65 6e | 74 20 69 73 20 61 20 73 | argumen|t is a s|
|00000100| 63 61 6c 61 72 2c 0d 74 | 68 65 20 72 65 73 75 6c |calar,.t|he resul|
|00000110| 74 20 69 73 20 24 30 24 | 20 69 66 20 74 68 65 20 |t is $0$| if the |
|00000120| 61 72 67 75 6d 65 6e 74 | 20 69 73 20 24 30 24 20 |argument| is $0$ |
|00000130| 2d 20 6f 74 68 65 72 77 | 69 73 65 20 74 68 65 20 |- otherw|ise the |
|00000140| 72 65 73 75 6c 74 20 69 | 73 0d 24 31 24 2e 20 20 |result i|s.$1$. |
|00000150| 49 66 20 74 68 65 20 61 | 72 67 75 6d 65 6e 74 20 |If the a|rgument |
|00000160| 69 73 20 61 20 72 6f 77 | 20 6f 72 20 63 6f 6c 75 |is a row| or colu|
|00000170| 6d 6e 20 76 65 63 74 6f | 72 2c 20 5c 76 65 72 62 |mn vecto|r, \verb|
|00000180| 2b 61 6e 79 2b 20 72 65 | 74 75 72 6e 73 0d 61 20 |+any+ re|turns.a |
|00000190| 24 31 24 20 69 66 20 61 | 6e 79 20 6f 66 20 74 68 |$1$ if a|ny of th|
|000001a0| 65 20 65 6c 65 6d 65 6e | 74 73 20 61 72 65 20 6e |e elemen|ts are n|
|000001b0| 6f 6e 2d 7a 65 72 6f 2e | 20 20 49 66 20 74 68 65 |on-zero.| If the|
|000001c0| 20 61 72 67 75 6d 65 6e | 74 20 69 73 20 73 6f 6d | argumen|t is som|
|000001d0| 65 0d 6f 74 68 65 72 20 | 6b 69 6e 64 20 6f 66 20 |e.other |kind of |
|000001e0| 6d 61 74 72 69 78 2c 20 | 5c 76 65 72 62 2b 61 6e |matrix, |\verb+an|
|000001f0| 79 2b 20 72 65 74 75 72 | 6e 73 20 61 20 72 6f 77 |y+ retur|ns a row|
|00000200| 20 76 65 63 74 6f 72 20 | 70 72 6f 64 75 63 65 64 | vector |produced|
|00000210| 0d 62 79 20 70 65 72 66 | 6f 72 6d 69 6e 67 20 74 |.by perf|orming t|
|00000220| 68 65 20 74 65 73 74 20 | 6f 6e 20 65 61 63 68 20 |he test |on each |
|00000230| 63 6f 6c 75 6d 6e 20 6f | 66 20 74 68 65 20 6d 61 |column o|f the ma|
|00000240| 74 72 69 78 20 69 6e 20 | 74 75 72 6e 2e 0d 0d 5c |trix in |turn...\|
|00000250| 70 61 72 61 67 72 61 70 | 68 7b 45 78 61 6d 70 6c |paragrap|h{Exampl|
|00000260| 65 7d 0d 5c 69 6e 64 65 | 78 7b 65 78 61 6d 70 6c |e}.\inde|x{exampl|
|00000270| 65 20 6f 66 20 61 6e 79 | 28 29 7d 0d 5c 69 6e 64 |e of any|()}.\ind|
|00000280| 65 78 7b 61 6e 79 28 29 | 21 65 78 61 6d 70 6c 65 |ex{any()|!example|
|00000290| 7d 0d 5c 62 65 67 69 6e | 7b 76 65 72 62 61 74 69 |}.\begin|{verbati|
|000002a0| 6d 7d 0d 3e 20 61 20 3d | 20 5b 20 30 2c 33 2c 34 |m}.> a =| [ 0,3,4|
|000002b0| 2c 34 2c 30 5d 0d 20 61 | 20 3d 0d 20 20 20 20 20 |,4,0]. a| =. |
|000002c0| 20 20 20 30 20 20 20 20 | 20 20 20 20 20 20 33 20 | 0 | 3 |
|000002d0| 20 20 20 20 20 20 20 20 | 20 34 20 20 20 20 20 20 | | 4 |
|000002e0| 20 20 20 20 34 20 20 20 | 20 20 20 20 20 20 20 30 | 4 | 0|
|000002f0| 20 20 0d 3e 20 61 6e 79 | 28 61 29 0d 20 20 20 20 | .> any|(a). |
|00000300| 20 20 20 20 31 20 20 0d | 3e 20 62 20 3d 20 5b 30 | 1 .|> b = [0|
|00000310| 2c 30 2c 30 5d 0d 20 62 | 20 3d 0d 20 20 20 20 20 |,0,0]. b| =. |
|00000320| 20 20 20 30 20 20 20 20 | 20 20 20 20 20 20 30 20 | 0 | 0 |
|00000330| 20 20 20 20 20 20 20 20 | 20 30 20 20 0d 3e 20 61 | | 0 .> a|
|00000340| 6e 79 28 62 29 0d 20 20 | 20 20 20 20 20 20 30 20 |ny(b). | 0 |
|00000350| 20 0d 3e 20 63 20 3d 20 | 5b 61 3b 62 2c 36 2c 30 | .> c = |[a;b,6,0|
|00000360| 5d 0d 20 63 20 3d 0d 20 | 20 20 20 20 20 20 20 30 |]. c =. | 0|
|00000370| 20 20 20 20 20 20 20 20 | 20 20 33 20 20 20 20 20 | | 3 |
|00000380| 20 20 20 20 20 34 20 20 | 20 20 20 20 20 20 20 20 | 4 | |
|00000390| 34 20 20 20 20 20 20 20 | 20 20 20 30 20 20 0d 20 |4 | 0 . |
|000003a0| 20 20 20 20 20 20 20 30 | 20 20 20 20 20 20 20 20 | 0| |
|000003b0| 20 20 30 20 20 20 20 20 | 20 20 20 20 20 30 20 20 | 0 | 0 |
|000003c0| 20 20 20 20 20 20 20 20 | 36 20 20 20 20 20 20 20 | |6 |
|000003d0| 20 20 20 30 20 20 0d 3e | 20 61 6e 79 28 63 29 0d | 0 .>| any(c).|
|000003e0| 20 20 20 20 20 20 20 20 | 30 20 20 20 20 20 20 20 | |0 |
|000003f0| 20 20 20 31 20 20 20 20 | 20 20 20 20 20 20 31 20 | 1 | 1 |
|00000400| 20 20 20 20 20 20 20 20 | 20 31 20 20 20 20 20 20 | | 1 |
|00000410| 20 20 20 20 30 20 20 0d | 3e 20 61 6e 79 28 61 6e | 0 .|> any(an|
|00000420| 79 28 63 29 29 0d 20 20 | 20 20 20 20 20 20 31 20 |y(c)). | 1 |
|00000430| 20 0d 5c 65 6e 64 7b 76 | 65 72 62 61 74 69 6d 7d | .\end{v|erbatim}|
|00000440| 0d 0d 53 65 65 20 61 6c | 73 6f 3a 20 50 61 67 65 |..See al|so: Page|
|00000450| 7e 5c 70 61 67 65 72 65 | 66 7b 66 6e 3a 61 6c 6c |~\pagere|f{fn:all|
|00000460| 7d 20 5c 76 65 72 62 2b | 61 6c 6c 28 29 2b 2e 0d |} \verb+|all()+..|
|00000470| 0d 5c 6e 65 77 70 61 67 | 65 20 0d 0d 0d 0d 0d |.\newpag|e ..... |
+--------+-------------------------+-------------------------+--------+--------+